using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NeosSDI.Core.Attributes
{
    /// <summary>
    /// Attribut de mappage d'une propriété à un champs en base de donnés oracle
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class MapDtoAttribute : System.Attribute
    {
        /// <summary>
        /// Type of the Dto to map to
        /// </summary>
        public Type DtoType { get; set; }

        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="_dbName">Type of the Dto to map to</param>
        public MapDtoAttribute(Type _dtoType)
        {
            DtoType = _dtoType;
        }
    }
}
